/**
 * 
 */

package com.shy.base.vo;

import java.util.List;

import com.google.gson.annotations.Expose;

/**
 * <p>
 * Title: EasyuiPagerVo
 * </p>
 * <p>
 * Description: Easyui框架專用分頁對象，包含總数和当前列表
 * </p>
 * <p>
 * Company:
 * </p>
 * 
 * @author H2013788
 * @date 2017/9/27下午5:19:58
 */
public class EasyuiPagerVo {

    @Expose
    private Integer total;

    @Expose
    @SuppressWarnings("rawtypes")
    private List rows;

    /**
     * 通用分頁對象轉easyui分頁對象
     * 
     * @param pagerFilter 通用分页对象
     */
    public EasyuiPagerVo(PagerFilter pagerFilter) {
        this.rows = pagerFilter.getObjs();
        this.total = pagerFilter.getTotal().intValue();
    }

    /**
	 * 
	 */
	public EasyuiPagerVo() {
		// TODO Auto-generated constructor stub
	}

	public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    @SuppressWarnings("rawtypes")
    public List getRows() {
        return rows;
    }

    @SuppressWarnings("rawtypes")
    public void setRows(List rows) {
        this.rows = rows;
    }

}
